﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Media;
using System;
using System.Collections.Generic;

namespace BeatingMole
{
    class CInfoMap3 : CInfoMap
    {
        #region "Constructor"
        /// <summary>
        /// Phương thức khởi tạo không tham số
        /// </summary>
        public CInfoMap3(ContentManager content, SpriteBatch spriteBatch, GameTime gameTime)
            : base(content, spriteBatch, gameTime)
        {
            Content = content;
            SpriteBatch = spriteBatch;
            GameTime = gameTime;
            
            CGlobalVariable.timeMap = 120;
            CGlobalVariable.level = 3;
            if (content != null)
            {                
                Background = content.Load<Texture2D>(@"Resource/Maps/gamebg3");
                Bar = content.Load<Texture2D>(@"Resource/Bar/Bar");
                Clock = content.Load<Texture2D>(@"Resource/Maps/clock");
                TimeBar = content.Load<Texture2D>(@"Resource/Maps/timebar");
                Pause = content.Load<Texture2D>(@"Resource/Maps/Pause");
                TextPauseGame = content.Load<Texture2D>(@"Resource/Maps/TextPauseGame");
                TextGameOver = content.Load<Texture2D>(@"Resource/Maps/TextGameOver");
                SongPlayGame = content.Load<Song>(@"Resource/Sound/GameMusic");
                SongGameOver = content.Load<SoundEffect>(@"Resource/Sound/Wav/gameover");
            }            
            IsEnable = true;
            IsVisibility = true;
        }


        /// <summary>
        /// Phương thức khởi tạo có tham số
        /// </summary>
        /// <param name="spriteBatch"></param>
        /// <param name="timeMap"></param>
        /// <param name="requiredScore"></param>
        public CInfoMap3(ContentManager content, SpriteBatch sptiteBatch, GameTime gameTime, int timeMap,
            int requiredScore, int level, CBusListEnemy listEnemy, 
            Texture2D background, Texture2D bar, Texture2D clock, Texture2D timebar, bool isEnable, bool isVisibility,
            Texture2D pause, Texture2D textPauseGame, Texture2D textGameOver)
            : base(content, sptiteBatch, gameTime, timeMap, requiredScore, level, listEnemy, background, bar,
            clock, timebar, isEnable, isVisibility, pause, textPauseGame, textGameOver)
        {

        }

        /// <summary>
        /// Phương thức sao chép đối tượng Map
        /// </summary>
        /// <param name="map">Đối tượng Map</param>
        public CInfoMap3(CInfoMap1 map)
            : base(map)
        {

        }
        #endregion
    }
}
